<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>新冠疫情</title>
</head>
<body>



<script type="text/javascript">
    window.onload=function(){
        getDomesticCityEpidemic();
    }

    function getDomesticCityEpidemic(){
        var that = this
        $.ajax({
            type: "GET",
            url: "http://localhost:8080/newpneumonia/domestic_city_epidemic/new_info",
            success: function (data) {
                that.getDomesticCityEpidemicData(data)
            }
        });
    }
    function getDomesticEpidemic(){
        let that = this
        $.ajax({
            type: "GET",
            url: "http://localhost:8080/newpneumonia/domestic_epidemic/new_info",
            success: function(data){
                console.log(data)
                that.domesticEpidemicData = data.info
            }
        });
    }
    function getForeignEpidemic(){
        let that = this
        $.ajax({
            type: "GET",
            url: "http://localhost:8080/newpneumonia/foreign_epidemic/new_info",
            success: function(data){
                console.log(data)
                that.foreignEpidemicData = data.info
            }
        });
    }
</script>
</body>
</html>
